home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / Direct Blitting in C++ / Blitting.sit / Blitting ƒ / CDirectGWorld.h < prev    next >
Text File  |  1995-04-16  |  853b  |  37 lines

  1. // CDirectGWorld.h, the CDirectGWorld class
  2. //
  3. // Copyright ⌐ 1995, Macneil Shonle. All rights reserved.
  4.  
  5. #ifndef __CDIRECTGWORLD__
  6. #define __CDIRECTGWORLD__
  7.  
  8. #ifndef __CDIRECTBLIT__
  9. #include <CDirectBlit.h>
  10. #endif
  11.  
  12. #ifndef __PIXELTYPES__
  13. #include <PixelTypes.h>
  14. #endif
  15.  
  16. #ifndef __QDOFFSCREEN__
  17. #include <QDOffscreen.h>
  18. #endif
  19.  
  20. class CDirectGWorld : public CDirectBlit {
  21. public:
  22.     CDirectGWorld( Rect &bounds, BitDepth depth = kEightBit, CTabHandle cTable = nil );
  23.     CDirectGWorld( RowWidth width, ColumnHeight height, BitDepth depth = kEightBit,
  24.                    CTabHandle cTable = nil );
  25.     virtual ~CDirectGWorld();
  26.     
  27.     GWorldPtr GetMacGWorld();
  28.     
  29. protected:
  30.     GWorldPtr mGWorld;
  31.     
  32. private:
  33.     void construct( Rect &bounds, BitDepth depth, CTabHandle cTable );
  34.     QDErr NewCleanGWorld( GWorldPtr &theGWorld, Rect& bounds, BitDepth depth, CTabHandle cTable );
  35. };
  36.  
  37. #endif